package com.yc.api.d1104;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.List;

public class EclipseUI {

	protected Shell shlAboutEclipseIde;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			EclipseUI window = new EclipseUI();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shlAboutEclipseIde.open();
		shlAboutEclipseIde.layout();
		while (!shlAboutEclipseIde.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		shlAboutEclipseIde = new Shell();
		shlAboutEclipseIde.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/9.png"));
		shlAboutEclipseIde.setSize(678, 491);
		shlAboutEclipseIde.setText("About Eclipse IDE");
		shlAboutEclipseIde.setLayout(new FormLayout());
		
		Composite composite = new Composite(shlAboutEclipseIde, SWT.NONE);
		composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		composite.setLayout(new FormLayout());
		FormData fd_composite = new FormData();
		fd_composite.top = new FormAttachment(0);
		fd_composite.left = new FormAttachment(0);
		fd_composite.right = new FormAttachment(100);
		composite.setLayoutData(fd_composite);
		
		Composite composite_1 = new Composite(shlAboutEclipseIde, SWT.NONE);
		fd_composite.bottom = new FormAttachment(composite_1, -6);
		FormData fd_composite_1 = new FormData();
		fd_composite_1.top = new FormAttachment(0, 271);
		fd_composite_1.left = new FormAttachment(0);
		
		Label lblNewLabel = new Label(composite, SWT.NONE);
		FormData fd_lblNewLabel = new FormData();
		fd_lblNewLabel.bottom = new FormAttachment(0, 166);
		fd_lblNewLabel.top = new FormAttachment(0);
		fd_lblNewLabel.left = new FormAttachment(0);
		lblNewLabel.setLayoutData(fd_lblNewLabel);
		lblNewLabel.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/QQ\u622A\u56FE20221105095250.png"));
		
		List list = new List(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
		FormData fd_list = new FormData();
		fd_list.left = new FormAttachment(0, 110);
		fd_list.right = new FormAttachment(100, -10);
		fd_list.top = new FormAttachment(lblNewLabel, 0, SWT.TOP);
		fd_list.bottom = new FormAttachment(0, 265);
		list.setLayoutData(fd_list);
		list.setItems(new String[] {"Eclipse IDE for Enterprise Java Developers.", "", "Version: 2020-03 (4.15.0)", "Build id: 20200313-1211", "", "(c) Copyright Eclipse contributors and others 2000, 2020.  All rights", " reserved. Eclipse and the Eclipse logo are trademarks of the Eclipse", " Foundation, Inc., https://www.eclipse.org/. The Eclipse logo cannot", " be altered without Eclipse's permission. Eclipse logos are provided", " for use under the Eclipse logo and trademark guidelines, ", "https://www.eclipse.org/logotm/. Oracle and Java are trademarks or", " registered trademarks of Oracle and/or its affiliates. Other names", " may be trademarks of their respective owners.", "", "This product includes software developed by other open source", " projects including the Apache Software Foundation, https://www.apache.org/."});
		composite_1.setLayout(new GridLayout(16, false));
		fd_composite_1.right = new FormAttachment(100);
		composite_1.setLayoutData(fd_composite_1);
		
		Button btnNewButton = new Button(composite_1, SWT.NONE);
		btnNewButton.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/1.png"));
		
		Button btnNewButton_1 = new Button(composite_1, SWT.NONE);
		btnNewButton_1.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/3.png"));
		
		Button btnNewButton_1_1 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_1.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/4.png"));
		
		Button btnNewButton_1_2 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_2.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/5.png"));
		
		Button btnNewButton_1_3 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_3.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/6.png"));
		
		Button btnNewButton_1_4 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_4.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/7.png"));
		
		Button btnNewButton_1_5 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_5.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/8.png"));
		
		Button btnNewButton_1_6 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_6.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/9.png"));
		
		Button btnNewButton_1_7 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_7.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/10.png"));
		
		Button btnNewButton_1_8 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_8.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/11.png"));
		
		Button btnNewButton_1_9 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_9.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/12.png"));
		
		Button btnNewButton_1_10 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_10.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/13.png"));
		
		Button btnNewButton_1_11 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_11.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/14.png"));
		
		Button btnNewButton_1_12 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_12.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/15.png"));
		
		Button btnNewButton_1_13 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_13.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/16.png"));
		
		Button btnNewButton_1_14 = new Button(composite_1, SWT.NONE);
		btnNewButton_1_14.setImage(SWTResourceManager.getImage(EclipseUI.class, "/com/yc/api/d1104/eclipse/17.png"));
		
		Composite composite_2 = new Composite(shlAboutEclipseIde, SWT.NONE);
		fd_composite_1.bottom = new FormAttachment(composite_2, -6);
		composite_2.setLayout(new FormLayout());
		FormData fd_composite_2 = new FormData();
		fd_composite_2.left = new FormAttachment(0);
		fd_composite_2.right = new FormAttachment(100);
		fd_composite_2.bottom = new FormAttachment(100);
		fd_composite_2.top = new FormAttachment(100, -38);
		composite_2.setLayoutData(fd_composite_2);
		
		Button btnNewButton_2 = new Button(composite_2, SWT.NONE);
		FormData fd_btnNewButton_2 = new FormData();
		fd_btnNewButton_2.bottom = new FormAttachment(100, -10);
		fd_btnNewButton_2.left = new FormAttachment(0, 36);
		btnNewButton_2.setLayoutData(fd_btnNewButton_2);
		btnNewButton_2.setText("lnstallation Details\n");
		
		Button btnClose = new Button(composite_2, SWT.NONE);
		FormData fd_btnClose = new FormData();
		fd_btnClose.bottom = new FormAttachment(100, -10);
		fd_btnClose.right = new FormAttachment(100, -10);
		fd_btnClose.left = new FormAttachment(100, -82);
		btnClose.setLayoutData(fd_btnClose);
		btnClose.setText("close");

	}
}
